package net.yunxinyong.cec.entity;

import net.yunxinyong.cec.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Cec701Entity {
    //调查单位基本情况(701表)
    private Integer id;
    //组织机构代码(101)
    private String organizationCode;
    //统一社会信用代码(109)
    private String socialCreditCode;
    //单位详细名称(102)
    private String unitDetailedName;
    //主要业务活动(或主要产品)(103) 用逗号分隔（英文逗号）
    private String majorBusiness;
    //行业代码(GB/T 4754-2017)(103)  调查单位填写
    private String industryCode;
    //报表类别(104)  用逗号分隔（英文逗号）(code,name)
    private String reportCategory;
    //区划代码(105)
    private String unitZoningCode;
    //单位所在地(105)
    private String unitLocation;
    //单位区划（建筑业单位需填写本项，其它单位的注册地与105单位所在地一致的，免填本项）(106)
    private String unitZoning106;
    //单位注册地（建筑业单位需填写本项，其它单位的注册地与105单位所在地一致的，免填本项）(106)
    private String unitLocation106;
    //单位规模(191)1 大型 2 中型 3 小型4 微型
    private Integer unitScale;
    //从业人员(192)
    private Integer employee;
    //女性从业人数(192)
    private Integer female;
    //营业收入(193)(单位：千元)
    private BigDecimal businessIncome;
    //主营业务收入(193)(单位：千元)
    private BigDecimal mainBusinessIncome;
    //资产总计(193)(单位：千元)
    private BigDecimal totalAssets;
    //税金及附加(193)(单位：千元)
    private BigDecimal taxAndAdditional;
    //法定代表人(单位负责人)(201)
    private String legalRepresentative;
    //开业(成立)时间(202)   (精确到年.月)
    private String establishmentTime;
    //长途区号(203)
    private String areaCode;
    //固定电话(203)
    private String fixedLineTelephone;
    //移动电话(203)
    private String cellPhoneNumber;
    //传真号码(203)
    private String faxNumber;
    //邮政编码(203)
    private String postalCode;
    //登记注册类型(205)用逗号分隔（英文逗号）(code,name)
    private String registrationType;
    //港澳台商投资情况(216)（限港澳台商投资企业填报）（可多选)1 港商投资2 澳商投资3 台商投资
    private String gatInvestmentSituation;
    //企业控股情况(206)1 国有控股 2 集体控股  3 私人控股 4 港澳台商控股5 外商控股 9 其他
    private Integer holdingSituation;
    //隶属关系(207)10 中央    11地方
    private Integer affiliation;
    //营业状态(208)1营业 2停业(歇业) 3筹建 4当年关闭  5当年破产 6当年注销 7当年吊销  9其他
    private Integer businessState;
    //执行会计标准类别(209)1 企业会计制度    2 事业单位会计制度    3 行政单位会计制度   4 民间非营利组织会计制度    9 其他
    private Integer accountingStandardCategory;
    //执行企业会计准则情况(210)1 执行《企业会计准则》    2  执行《小企业会计准则》9  执行其他企业会计制度
    private Integer accountingStandard;
    //机构类型(211)10 企业  20 事业单位  30 机关          40 社会团体   51 民办非企业单位
//52 基金会    53 居委会      54 村委会 55 农民专业合作社    90 其他组织机构
    private Integer mechanismType;
    //是否集团母公司（213）1是 2 否（添加母公司代码）
    private Integer isParentCompany;
    //上级法人单位组织机构代码(213)
    private String parentOrganizationCode;
    //上级法人统一社会信用代码(213)
    private String parentSocialCreditCode;
    //建筑业企业资质等级编码 (C01)
    private String constructionIndustryQualificationCoding;
    //是否已换发新版建筑业企业资质证书(C02)1 是     2 否
    private Integer isNewQualificationCertificate;
    //房地产开发经营业企业资质等级(X01)1 一级   2 二级   3 三级   4 四级   5 暂定   9 其他
    private Integer realEstateDevelopmentGrade;
    //批发和零售业、住宿和餐饮业企业经营形式(E01)1 独立门店      2 连锁总店（总部）     3 连锁直营店     4 连锁加盟店     9 其他
    private Integer formOfOperation;
    //连锁品牌（商标或商号名称）(E01)
    private String chainBrand;
    //零售业态（可多选，不超过3个）(E02)用逗号分隔（英文逗号）(code,name)
    private String retailFormat;
    //批发和零售业年末零售营业面积(E03) 单位：平方米
    private Float warOperatingArea;
    //住宿业企业星级评定情况(S02)1 一星     2 二星    3 三星    4 四星    5 五星    9 其他
    private Integer accommodationStar;
    //住宿和餐饮业年末餐饮营业面积(S03)单位：平方米
    private Float aacOperatingArea;
    //(214）默认0没有上一级 1有上一级法人
    private Integer isHavaSuperior;
    //(214)上一级组织机构代码
    private String superiorOrganizationCode;
    //(214)上一级统一社会信用代码
    private String superiorSocialCreditCode;
    //(214)上一级单位详细名称
    private String superiorUnitDetailedName;
    //(212)产业活动单位数:个  (单产业法人本指标填1，免填所属产业活动单位情况)
    private Integer industrialUnitsNumber;
    //(212)单位类别
    private String industrial1;
    //(212)组织机构代码
    private String industrial2;
    //industrial_3
    private String industrial3;
    //(212)单位详细名称
    private String industrial4;
    //(212)详细地址
    private String industrial5;
    //(212)区划代码
    private String industrial6;
    //(212)联系电话
    private String industrial7;
    //((212)主要业务活动
    private String industrial8;
    //(212)行业代码(GB/T 4754-2017)
    private String industrial9;
    //(212)从业人员期末人数(人)
    private String industrial10;
    //(212)经营性单位收入（千元）
    private String industrial11;
    //(212)非经营性单位支出（费用）(千元
    private String industrial12;
    //单位负责人
    private String unitHead;
    //统计负责人
    private String statisticalControlOfficer;
    //填表人
    private String fillFormBy;
    //联系电话
    private String phone;
    //清查进度0未清查1正在清查2已经查3未找到企业4企业已搬走
    private Integer state;
    //更改表时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date updateTime;
    //填表时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
    //默认0正常 -1删除
    private Integer status;
    //格式化后的表更新日期
    private String newupdateTime;
    //格式化后的表创建日期
    private String newcreateTime;

    public String getNewupdateTime() {
        return DateUtil.formatDateToStr(this.updateTime);
    }

    public void setNewupdateTime(String newupdateTime) {
        this.newupdateTime = newupdateTime;
    }

    public String getNewcreateTime() {
        return DateUtil.formatDateToStr(this.createTime);
    }

    public void setNewcreateTime(String newcreateTime) {
        this.newcreateTime = newcreateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode == null ? null : organizationCode.trim();
    }

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode == null ? null : socialCreditCode.trim();
    }

    public String getUnitDetailedName() {
        return unitDetailedName;
    }

    public void setUnitDetailedName(String unitDetailedName) {
        this.unitDetailedName = unitDetailedName == null ? null : unitDetailedName.trim();
    }

    public String getMajorBusiness() {
        return majorBusiness;
    }

    public void setMajorBusiness(String majorBusiness) {
        this.majorBusiness = majorBusiness == null ? null : majorBusiness.trim();
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode == null ? null : industryCode.trim();
    }

    public String getReportCategory() {
        return reportCategory;
    }

    public void setReportCategory(String reportCategory) {
        this.reportCategory = reportCategory == null ? null : reportCategory.trim();
    }

    public String getUnitZoningCode() {
        return unitZoningCode;
    }

    public void setUnitZoningCode(String unitZoningCode) {
        this.unitZoningCode = unitZoningCode == null ? null : unitZoningCode.trim();
    }

    public String getUnitLocation() {
        return unitLocation;
    }

    public void setUnitLocation(String unitLocation) {
        this.unitLocation = unitLocation == null ? null : unitLocation.trim();
    }

    public String getUnitZoning106() {
        return unitZoning106;
    }

    public void setUnitZoning106(String unitZoning106) {
        this.unitZoning106 = unitZoning106 == null ? null : unitZoning106.trim();
    }

    public String getUnitLocation106() {
        return unitLocation106;
    }

    public void setUnitLocation106(String unitLocation106) {
        this.unitLocation106 = unitLocation106 == null ? null : unitLocation106.trim();
    }

    public Integer getUnitScale() {
        return unitScale;
    }

    public void setUnitScale(Integer unitScale) {
        this.unitScale = unitScale;
    }

    public Integer getEmployee() {
        return employee;
    }

    public void setEmployee(Integer employee) {
        this.employee = employee;
    }

    public Integer getFemale() {
        return female;
    }

    public void setFemale(Integer female) {
        this.female = female;
    }

    public BigDecimal getBusinessIncome() {
        return businessIncome;
    }

    public void setBusinessIncome(BigDecimal businessIncome) {
        this.businessIncome = businessIncome;
    }

    public BigDecimal getMainBusinessIncome() {
        return mainBusinessIncome;
    }

    public void setMainBusinessIncome(BigDecimal mainBusinessIncome) {
        this.mainBusinessIncome = mainBusinessIncome;
    }

    public BigDecimal getTotalAssets() {
        return totalAssets;
    }

    public void setTotalAssets(BigDecimal totalAssets) {
        this.totalAssets = totalAssets;
    }

    public BigDecimal getTaxAndAdditional() {
        return taxAndAdditional;
    }

    public void setTaxAndAdditional(BigDecimal taxAndAdditional) {
        this.taxAndAdditional = taxAndAdditional;
    }

    public String getLegalRepresentative() {
        return legalRepresentative;
    }

    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative == null ? null : legalRepresentative.trim();
    }

    public String getEstablishmentTime() {
        return establishmentTime;
    }

    public void setEstablishmentTime(String establishmentTime) {
        this.establishmentTime = establishmentTime == null ? null : establishmentTime.trim();
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode == null ? null : areaCode.trim();
    }

    public String getFixedLineTelephone() {
        return fixedLineTelephone;
    }

    public void setFixedLineTelephone(String fixedLineTelephone) {
        this.fixedLineTelephone = fixedLineTelephone == null ? null : fixedLineTelephone.trim();
    }

    public String getCellPhoneNumber() {
        return cellPhoneNumber;
    }

    public void setCellPhoneNumber(String cellPhoneNumber) {
        this.cellPhoneNumber = cellPhoneNumber == null ? null : cellPhoneNumber.trim();
    }

    public String getFaxNumber() {
        return faxNumber;
    }

    public void setFaxNumber(String faxNumber) {
        this.faxNumber = faxNumber == null ? null : faxNumber.trim();
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode == null ? null : postalCode.trim();
    }

    public String getRegistrationType() {
        return registrationType;
    }

    public void setRegistrationType(String registrationType) {
        this.registrationType = registrationType == null ? null : registrationType.trim();
    }

    public String getGatInvestmentSituation() {
        return gatInvestmentSituation;
    }

    public void setGatInvestmentSituation(String gatInvestmentSituation) {
        this.gatInvestmentSituation = gatInvestmentSituation == null ? null : gatInvestmentSituation.trim();
    }

    public Integer getHoldingSituation() {
        return holdingSituation;
    }

    public void setHoldingSituation(Integer holdingSituation) {
        this.holdingSituation = holdingSituation;
    }

    public Integer getAffiliation() {
        return affiliation;
    }

    public void setAffiliation(Integer affiliation) {
        this.affiliation = affiliation;
    }

    public Integer getBusinessState() {
        return businessState;
    }

    public void setBusinessState(Integer businessState) {
        this.businessState = businessState;
    }

    public Integer getAccountingStandardCategory() {
        return accountingStandardCategory;
    }

    public void setAccountingStandardCategory(Integer accountingStandardCategory) {
        this.accountingStandardCategory = accountingStandardCategory;
    }

    public Integer getAccountingStandard() {
        return accountingStandard;
    }

    public void setAccountingStandard(Integer accountingStandard) {
        this.accountingStandard = accountingStandard;
    }

    public Integer getMechanismType() {
        return mechanismType;
    }

    public void setMechanismType(Integer mechanismType) {
        this.mechanismType = mechanismType;
    }

    public Integer getIsParentCompany() {
        return isParentCompany;
    }

    public void setIsParentCompany(Integer isParentCompany) {
        this.isParentCompany = isParentCompany;
    }

    public String getParentOrganizationCode() {
        return parentOrganizationCode;
    }

    public void setParentOrganizationCode(String parentOrganizationCode) {
        this.parentOrganizationCode = parentOrganizationCode == null ? null : parentOrganizationCode.trim();
    }

    public String getParentSocialCreditCode() {
        return parentSocialCreditCode;
    }

    public void setParentSocialCreditCode(String parentSocialCreditCode) {
        this.parentSocialCreditCode = parentSocialCreditCode == null ? null : parentSocialCreditCode.trim();
    }

    public String getConstructionIndustryQualificationCoding() {
        return constructionIndustryQualificationCoding;
    }

    public void setConstructionIndustryQualificationCoding(String constructionIndustryQualificationCoding) {
        this.constructionIndustryQualificationCoding = constructionIndustryQualificationCoding == null ? null : constructionIndustryQualificationCoding.trim();
    }

    public Integer getIsNewQualificationCertificate() {
        return isNewQualificationCertificate;
    }

    public void setIsNewQualificationCertificate(Integer isNewQualificationCertificate) {
        this.isNewQualificationCertificate = isNewQualificationCertificate;
    }

    public Integer getRealEstateDevelopmentGrade() {
        return realEstateDevelopmentGrade;
    }

    public void setRealEstateDevelopmentGrade(Integer realEstateDevelopmentGrade) {
        this.realEstateDevelopmentGrade = realEstateDevelopmentGrade;
    }

    public Integer getFormOfOperation() {
        return formOfOperation;
    }

    public void setFormOfOperation(Integer formOfOperation) {
        this.formOfOperation = formOfOperation;
    }

    public String getChainBrand() {
        return chainBrand;
    }

    public void setChainBrand(String chainBrand) {
        this.chainBrand = chainBrand == null ? null : chainBrand.trim();
    }

    public String getRetailFormat() {
        return retailFormat;
    }

    public void setRetailFormat(String retailFormat) {
        this.retailFormat = retailFormat == null ? null : retailFormat.trim();
    }

    public Float getWarOperatingArea() {
        return warOperatingArea;
    }

    public void setWarOperatingArea(Float warOperatingArea) {
        this.warOperatingArea = warOperatingArea;
    }

    public Integer getAccommodationStar() {
        return accommodationStar;
    }

    public void setAccommodationStar(Integer accommodationStar) {
        this.accommodationStar = accommodationStar;
    }

    public Float getAacOperatingArea() {
        return aacOperatingArea;
    }

    public void setAacOperatingArea(Float aacOperatingArea) {
        this.aacOperatingArea = aacOperatingArea;
    }

    public Integer getIsHavaSuperior() {
        return isHavaSuperior;
    }

    public void setIsHavaSuperior(Integer isHavaSuperior) {
        this.isHavaSuperior = isHavaSuperior;
    }

    public String getSuperiorOrganizationCode() {
        return superiorOrganizationCode;
    }

    public void setSuperiorOrganizationCode(String superiorOrganizationCode) {
        this.superiorOrganizationCode = superiorOrganizationCode == null ? null : superiorOrganizationCode.trim();
    }

    public String getSuperiorSocialCreditCode() {
        return superiorSocialCreditCode;
    }

    public void setSuperiorSocialCreditCode(String superiorSocialCreditCode) {
        this.superiorSocialCreditCode = superiorSocialCreditCode == null ? null : superiorSocialCreditCode.trim();
    }

    public String getSuperiorUnitDetailedName() {
        return superiorUnitDetailedName;
    }

    public void setSuperiorUnitDetailedName(String superiorUnitDetailedName) {
        this.superiorUnitDetailedName = superiorUnitDetailedName == null ? null : superiorUnitDetailedName.trim();
    }

    public Integer getIndustrialUnitsNumber() {
        return industrialUnitsNumber;
    }

    public void setIndustrialUnitsNumber(Integer industrialUnitsNumber) {
        this.industrialUnitsNumber = industrialUnitsNumber;
    }

    public String getIndustrial1() {
        return industrial1;
    }

    public void setIndustrial1(String industrial1) {
        this.industrial1 = industrial1 == null ? null : industrial1.trim();
    }

    public String getIndustrial2() {
        return industrial2;
    }

    public void setIndustrial2(String industrial2) {
        this.industrial2 = industrial2 == null ? null : industrial2.trim();
    }

    public String getIndustrial3() {
        return industrial3;
    }

    public void setIndustrial3(String industrial3) {
        this.industrial3 = industrial3 == null ? null : industrial3.trim();
    }

    public String getIndustrial4() {
        return industrial4;
    }

    public void setIndustrial4(String industrial4) {
        this.industrial4 = industrial4 == null ? null : industrial4.trim();
    }

    public String getIndustrial5() {
        return industrial5;
    }

    public void setIndustrial5(String industrial5) {
        this.industrial5 = industrial5 == null ? null : industrial5.trim();
    }

    public String getIndustrial6() {
        return industrial6;
    }

    public void setIndustrial6(String industrial6) {
        this.industrial6 = industrial6 == null ? null : industrial6.trim();
    }

    public String getIndustrial7() {
        return industrial7;
    }

    public void setIndustrial7(String industrial7) {
        this.industrial7 = industrial7 == null ? null : industrial7.trim();
    }

    public String getIndustrial8() {
        return industrial8;
    }

    public void setIndustrial8(String industrial8) {
        this.industrial8 = industrial8 == null ? null : industrial8.trim();
    }

    public String getIndustrial9() {
        return industrial9;
    }

    public void setIndustrial9(String industrial9) {
        this.industrial9 = industrial9 == null ? null : industrial9.trim();
    }

    public String getIndustrial10() {
        return industrial10;
    }

    public void setIndustrial10(String industrial10) {
        this.industrial10 = industrial10 == null ? null : industrial10.trim();
    }

    public String getIndustrial11() {
        return industrial11;
    }

    public void setIndustrial11(String industrial11) {
        this.industrial11 = industrial11 == null ? null : industrial11.trim();
    }

    public String getIndustrial12() {
        return industrial12;
    }

    public void setIndustrial12(String industrial12) {
        this.industrial12 = industrial12 == null ? null : industrial12.trim();
    }

    public String getUnitHead() {
        return unitHead;
    }

    public void setUnitHead(String unitHead) {
        this.unitHead = unitHead == null ? null : unitHead.trim();
    }

    public String getStatisticalControlOfficer() {
        return statisticalControlOfficer;
    }

    public void setStatisticalControlOfficer(String statisticalControlOfficer) {
        this.statisticalControlOfficer = statisticalControlOfficer == null ? null : statisticalControlOfficer.trim();
    }

    public String getFillFormBy() {
        return fillFormBy;
    }

    public void setFillFormBy(String fillFormBy) {
        this.fillFormBy = fillFormBy == null ? null : fillFormBy.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {

        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}